import request from "@/utils/request";

//工单统计
export const taskReportInfo = () =>
  request.get(
    "/api/task-service/task/taskReportInfo/2022-11-01%2000:00:00/2022-11-21%2023:59:59"
  );

//销售统计(订单量)
export const orderCount = () =>
  request.get(
    "/api/order-service/report/orderCount?start=2022-11-01+00:00:00&end=2022-11-21+23:59:59"
  );

//销售额
export const orderAmount = () =>
  request.get(
    "/api/order-service/report/orderAmount?start=2022-11-01+00:00:00&end=2022-11-21+23:59:59"
  );

//商品热榜
export const skuTop = () =>
  request.get("/api/order-service/report/skuTop/10/2022-11-01/2022-11-21");

//合作商点位数
export const getPoint = () => request.get("/api/vm-service/node/nodeCollect");

//16
export const count1 = () => request.get("/api/vm-service/node/count");
//5
export const count2 = () => request.get("/api/user-service/partner/count");
//运营工单
export const search = () =>
  request.get(
    "/api/task-service/task/search?pageIndex=1&pageSize=10&isRepair=false"
  );

export const getarea = (id, start, end) =>
  request.get(`/api/order-service/report/amountCollect/${id}/${start}/${end}`);

export const getAreas = (start, end) =>
  request.get(`/api/order-service/report/regionCollect/${start}/${end}`);
